package com.kalvan.client.system;

import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * 应用系统工具类
 *
 * @author kalvan
 */
@Order(Ordered.HIGHEST_PRECEDENCE)
@Component
public class SystemUtil {
    public static SystemConstants constants;

    @Resource
    SystemConstants systemConstants;

    @PostConstruct
    private void init() {
        constants = systemConstants;
    }
}
